<script setup lang="ts">
	import { configList } from '@/api/modules/config'
	import ProTable from '@/components/ProTable/index.vue'
	import { ColumnProps } from '@/components/ProTable/interface'

	const columns: Partial<ColumnProps>[] = [
		{ type: 'selection' },
		{ label: '商品名称', prop: 'configName' },
		{ label: '跳转链接', prop: 'redirectUrl' },
		{ label: '排序值', prop: 'configRank' },
		{ label: '商品编号', prop: 'goodsId' },
		{ label: '添加时间', prop: 'createTime' },
		{ label: '操作', prop: 'operation' }
	]
</script>

<template>
	<div>
		<ProTable :request-api="configList" :columns="columns" :init-params="{ configType: 5 }"></ProTable>
	</div>
</template>

<style scoped lang="scss">
	@import './index.scss';
</style>
